package edu.neusoft.yiqibike.dao.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import edu.neusoft.yiqibike.common.entity.mysql.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author YooLin1c
 * @since 2017-12-11
 * <p>
 * tip mapper必须在edu.neusoft.yiqibike.dao.mapper路径下
 */
public interface AdminMapper extends BaseMapper<Admin> {

    List<Admin> selectByPage(Page<Admin> page, @Param("ew") Wrapper<Admin> wrapper);

    void invertIsEnable(@Param("id") Long aid, @Param("isEnable") Integer isEnable);

    Admin selectOneById(Long id);

    Admin selectOneByRealname(String realname);
}